<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOphthalmologyMacularEdemaTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('st_ophthalmology_macular_edema', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('record_id')->comment('病例id');
            $table->unsignedTinyInteger('left')->comment('左眼 0无 1有 ');
            $table->integer('left_edema')->comment('左眼 水肿边缘距离中心凹最短距离 单位mm');
            $table->integer('left_thickness')->comment('左眼 黄斑区视网膜厚度 单位mm');
            $table->unsignedTinyInteger('right')->comment('右眼 0无 1有 ');
            $table->integer('right_edema')->comment('右眼 水肿边缘距离中心凹最短距离 单位mm');
            $table->integer('right_thickness')->comment('右眼 黄斑区视网膜厚度 单位mm');
            $table->string('remark',80)->comment('备注');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('st_ophthalmology_macular_edema');
    }
}
